<form action="{$BASE_URL}" method="post">
    <input class="return" type="hidden" name="return" value="" />
    <input type="hidden" name="todo" value="search" />
    <input type="text" name="q" id="ville" class="search_field" required />
</form>
{literal}
    <script>
        autoComplete = {
            element : '#ville.search_field',
            data : {
                serviceUrl:'{/literal}{$SYS_FOLDER}{literal}services/autocomplete/ville/',
                minChars:2,
                deferRequestBy: 350,
                onSelect: function(value, data){ submitQuery('#ville.search_field', value,data); }
            }
        }
    </script>
{/literal}
